<%@ page language="java" import="java.util.*,dao.*,entity.*" contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'login.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<!-- <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%> /css/style.css ">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%> /css/iconic.css ">
	 -->
	<link href="css/style.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="css/iconic.css" media="screen" rel="stylesheet" type="text/css" /> 
	<link href="css/bookList.css" media="screen" rel="stylesheet" type="text/css" /> 

<style type="text/css">
		table.hovertable{
			font-family: verdana.arial,sans-serif;
			font-size: 13px;
			color:#333333;
			border-width: 1px;
			border-color: #999999;
			border-collapse: collapse;
		}
		
		table.hovertable th{
			background-color: #c3dde0;
			border-width: 1px;
			padding: 8px;
			border-style: solid;
			border-color: #a9c6c9;
		}
		
		table.hovertable tr{
			background-color: #d4e3e8;
		}
		
		table.hovertable td{
			border-width: 1px;
			padding: 25px;
			border-style: solid;
			border-color: #a9c6c9;
		}
	</style>
  </head>
  
  <body>
  <h1><center><Strong>图书管理系统</Strong></center></h1>
    
     <c:if test="${user==null}">
        <a href="${pageContext.request.contextPath}/servlet/RegisterUIServlet" target="_blank">注册</a>
        <a href="${pageContext.request.contextPath }/servlet/LoginUIServlet">登陆</a>
   </c:if>
   
   <c:if test="${user!=null }">
        欢迎你：${user.getName()}
        <input type="button" value="退出登录" onclick="doLogout()" >
      </c:if>
    <div class="wrap">
	
	<nav>
		<ul class="menu">
			<li><a href="${pageContext.request.contextPath }/servlet/IndexBookCheckServlet"><span class="iconic home"></span>主页</a></li>
			<li><a><span class="iconic plus-alt"></span>图书管理</a>
				<ul>
					<li><a href="${pageContext.request.contextPath }/servlet/AllBookCheckServlet">查询图书</a></li>
					<li><a href="BookAdd.jsp">添加图书</a></li>
					<li><a href="systemmodifybook.jsp">修改图书信息</a></li>
					<li><a href="${pageContext.request.contextPath }/servlet/AllBookDeleteCheckServlet">删除图书</a></li>
				</ul>
			</li>
			<li><a><span class="iconic magnifying-glass"></span>借阅管理</a>
				<ul>
					<li><a href="${pageContext.request.contextPath }/servlet/AllBorrowCheckServlet">借阅查询</a></li>
					<li><a href="systembookborrow.jsp">借书还书续借</a></li>
				</ul>
			</li>
			<li><a><span class="iconic map-pin"></span>用户管理</a>
				<ul>
					<li><a href="${pageContext.request.contextPath }/servlet/AllUserCheckServlet">用户查询</a></li>
					<li><a href="systemadduser.jsp">添加用户</a></li>
					<li><a href="systemmodifyuser.jsp">修改用户信息</a></li>
					<li><a href="${pageContext.request.contextPath }/servlet/AllUserDeleteCheckServlet">删除用户</a></li>
					
				</ul>
			</li>
			<li><a><span class="iconic mail"></span>个人信息管理</a>
				<ul>
					<li><a href="systempersonalinformation.jsp">个人信息</a></li>
					<li><a href="${pageContext.request.contextPath }/servlet/PersonalBorrowCheckServlet">个人借阅记录</a></li>
					<li><a href="systemmodifypassword.jsp">修改密码</a></li>
				</ul>
			</li>
			<li><a><span class="iconic mail"></span>数据库管理</a>
				<ul>
					<li><a href="${pageContext.request.contextPath }/servlet/CreateDatebase">创建数据库</a></li>
				
				</ul>
			</li>
		</ul>
		<div class="clearfix"></div>
	</nav>
	</div >
     <center>
     <Strong><h1>修改用户信息</h1></Strong>
      
      <form action="${pageContext.request.contextPath }/servlet/ShowModifyUserServlet" method="post">
       <table class="hovertable">
       
    	<tr>
    	    <td>卡号：</td>
    		<td><input type="text" name="id"  value="${modifyuser.id}" readonly size=90></td>
    	</tr>
    	<tr>
    	    <td>姓名：</td>
    		<td><input type="text" name="name" value="${modifyuser.name}" size=90></td>
    	</tr>
    	<tr>
    	    <td>密码：</td>
    		<td><input type="text" name="password"  value="${modifyuser.password}"size=90 ></td>
    	</tr>
    	<tr>
    	    <td>性别：</td>
    		<td><input type="text" name="sex" value="${modifyuser.sex}"  size=90></td>
    	</tr>
    	<tr>
    		<td>学院专业：</td>
    		<td><input type="text" name="dept" value="${modifyuser.dept}" size=90></td>
       </tr>
       <tr>
    		<td>年级班级：</td>
    		<td><input type="text" name="grade"  value="${modifyuser.grade}" size=90></td>
       </tr>
       <tr> 
            <td>邮箱：</td>
          <td><input type="text" name="email"  value="${modifyuser.email}"  size=90></td>
       </tr>
    	<tr>
            <td>方向：</td>
          <td><input type="text" name="direction"  value="${modifyuser.direction}" size=90></td>
       </tr>
    <tr>
            <td>角色：</td>
          <td><input type="text" name="role"  value="${modifyuser.role}"  size=90>}</td>
       </tr>
       </table>
     
     
         <input type="submit" value="修改" >
      </form>
   
      </center>  
   
  </body>
</html>
